<template>
  <div>
    <el-button type="danger" @click="toPay">点击支付</el-button>
  </div>
</template>

<script>
import {pay} from "~/api/backend/pay/pay";

export default {
  name:"OrderDetail",
  methods:{
    toPay(){
      pay().then(res=>{
        document.write(res)
      })
    }
  }
}
</script>

<style scoped>

</style>
